<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles"%>
<t:insertDefinition name="main">
	<t:putAttribute name="title" type="string">View User Details</t:putAttribute>
	<t:putAttribute name="central" type="string">
        <table class="pretty">
            <tr><td>Id:</td><td>${user.id}</td></tr>
            <tr><td>Username:</td><td>${user.username}</td></tr>
            <tr><td>Full name:</td><td>${user.fullName}</td></tr>
            <tr><td>E-mail:</td><td>${user.email}</td></tr>
        </table>
        <a href="<c:url value="/delete.do?userId=${user.id}" />">Delete</a>,
        <a href="<c:url value="/update.do?userId=${user.id}" />">Update</a>,
        <a href="<c:url value="/list.do" />">List All</a>
    </t:putAttribute>
</t:insertDefinition>